<%-- 
    Document   : register
    Created on : Nov 18, 2011, 8:45:41 PM
    Author     : Breath
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

<!DOCTYPE html>

<f:view>
    <f:loadBundle basename="citypress" var="msg"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Register Page</title>
        </head>
        <body>
        <h:form id="registrationForm" > 
            <hr>
            <h:messages/>
            <fieldset>

                <h:outputLabel for="id" value="#{msg.registeredUserId}(*):"/>
                <h:outputText value="#{registeredMemberBean.registeredUser.id}" id="id"/>

                 <br/>
                 
                <h:outputLabel for="username" value="#{msg.registeredUserUsername}(*):"/>
                <h:inputText id="username" value="#{registeredMemberBean.registeredUser.username}" required="true"/>
                <h:message for="username"/>
                
                <br/>
                
                <h:outputLabel for="steetName" value="#{msg.registeredUserStreetName}(*):"/>
                <h:inputText id="streetName" value="#{registeredMemberBean.registeredUser.streetName}" required="true"/>
                <h:message for="streetName"/>
                
                <br/>
                
                <h:outputLabel for="password" value="#{msg.registeredUserPassword}(*):"/>
                <h:inputSecret id="password" value="#{registeredMemberBean.registeredUser.password}" required="true"/>
                <h:message for="password"/>
                
                <br/>
                
                <h:outputLabel for="zip" value="#{msg.registeredUserZip}(*):"/>
                <h:inputText id="zip" value="#{registeredMemberBean.registeredUser.zip}" required="true"/>
                <h:message for="zip"/>
                
                <br/>
                
                <h:outputLabel for="surname" value="#{msg.registeredUserSurname}(*):"/>
                <h:inputText value="#{registeredMemberBean.registeredUser.surname}" id="surname" required="true"/>
                <h:message for="surname"/>

                <br/>
                
                <h:outputLabel for="userType" value="#{msg.registeredUser_UserType}(*):"/>
                <h:inputText id="userType" value="#{registeredMemberBean.registeredUser.userType}" required="true"/>
                <h:message for="userType"/>
               
                <br/>
                
                <h:outputLabel for="email" value="#{msg.registeredUserEmail}(*):"/>
                <h:inputText id="email" value="#{registeredMemberBean.registeredUser.email}" required="true"/>
                <h:message for="email"/>
                
                <br/>
                
                <h:outputLabel for="name" value="#{msg.registeredUserName}:"/>
                <h:inputText value="#{registeredMemberBean.registeredUser.name}" id="name" required="true"/>
                <h:message for="name"/>

                <br/>
                
                <h:outputLabel for="website" value="#{msg.registeredUserWebsite}:"/>
                <h:inputText id="website" value="#{registeredMemberBean.registeredUser.website}"/>
                <h:message for="website"/>
                
                
            </fieldset>

            <hr>
            <h:commandButton value="#{msg.register}" action="#{registeredMemberBean.persistRegisteredUser}"/>
            <h:commandButton value="#{msg.back}"  action="#{registeredMemberBean.test()}"/>
            <hr>
        </h:form>
        </body>
    </html>
</f:view>
